INSERT INTO  TRASPARENZA

SELECT 'T11',BOLLETTA,'','B) TOTALE SERVIZI DI RETE','','','','','','','',ROUND(SUM(TOTALE),2),
'',null FROM TRASPARENZA WHERE RIGA IN ('T12','T13','T14','T15','T16','T17','T18','T19','T20','T21')
GROUP BY BOLLETTA


